<div class="panel panel-default panel-intro">
    <div class="panel-heading">
       <!--  <div class="panel-lead"><em>多表格（Multitable）</em>用于展示在一个页面展示多个表格数据,并且每次切换时刷新</div> -->
        <ul class="nav nav-tabs">
            <li class="active"><a href="#teacher" data-toggle="tab">{:__('Teacher_list')}</a></li>
            <li><a href="#family" data-toggle="tab">{:__('Family_list')}</a></li>
            <li><a href="#promote" data-toggle="tab">{:__('Promote_list')}</a></li>
        </ul>
    </div>
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="teacher">
                <div id="teacher_toolbar" class="toolbar" >
                    {:build_toolbar('refresh')}
                     <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('sample/sample/teacher_add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
                     <a href="javascript:;" class="btn btn-success btn-generate {:$auth->check('sample/sample/send')?'':'hide'}" title="{:__('Send')}" data-area='["50%", "80%"]'><i class="fa fa-paper-plane"></i> {:__('Send')}</a>
                     <a href="javascript:;" class="btn btn-danger btn-excel {:$auth->check('sample/sample/send_excel')?'':'hide'}" title="{:__('Send_excel')}" data-area='["50%", "80%"]'><i class="glyphicon glyphicon-export icon-share"></i>{:__('Send_excel')}</a>
                      <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled  {:$auth->check('sample/sample/delete')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}选中</a>  
                      <a href="javascript:;" class="btn btn-success btn-checksample btn-disabled disabled {:$auth->check('sample/sample/send_one')?'':'hide'}" title="{:__('Send_one')}" data-area='["50%", "80%"]'><i class="fa fa-paper-plane"></i> {:__('Send_one')}</a>
                       <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('sample/sample/teacher_edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
                     
                </div>
                <table id="teacher_table" class="table table-striped table-bordered table-hover" 
                         data-operate-edit="{:$auth->check('sample/sample/teacher_edit')}" 
                         data-operate-del="{:$auth->check('sample/sample/delete')}" 
                         data-operate-books="{:$auth->check('sample/sample/send_one')}" 
                width="100%">
                </table>
            </div>
            <div class="tab-pane fade" id="family">
                  <div id="family_toolbar" class="toolbar" >
                    {:build_toolbar('refresh')}
                    <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('sample/sample/family_add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
                     <a href="javascript:;" class="btn btn-success btn-generate {:$auth->check('sample/sample/send')?'':'hide'}" title="{:__('Send')}" data-area='["50%", "80%"]'><i class="fa fa-paper-plane"></i> {:__('Send')}</a>
                     <a href="javascript:;" class="btn btn-danger btn-excel {:$auth->check('sample/sample/send_excel')?'':'hide'}" title="{:__('Send_excel')}" data-area='["50%", "80%"]'><i class="glyphicon glyphicon-export icon-share"></i>{:__('Send_excel')}</a>
                     <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled  {:$auth->check('sample/sample/delete')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}选中</a>
                      <a href="javascript:;" class="btn btn-success btn-checksample btn-disabled disabled {:$auth->check('sample/sample/send_one')?'':'hide'}" title="{:__('Send_one')}" data-area='["50%", "80%"]'><i class="fa fa-paper-plane"></i> {:__('Send_one')}</a>
                      <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('sample/sample/family_edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
                </div>
                <table id="family_table" class="table table-striped table-bordered table-hover" 
                      data-operate-edit="{:$auth->check('sample/sample/family_edit')}" 
                       data-operate-del="{:$auth->check('sample/sample/delete')}" 
                       data-operate-books="{:$auth->check('sample/sample/send_one')}" 
                width="100%">
                </table>
            </div>            
            <div class="tab-pane fade" id="promote">
                    <div id="promote_toolbar" class="toolbar" >
                    {:build_toolbar('refresh')}
                     <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('sample/sample/promote_add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
                     <a href="javascript:;" class="btn btn-success btn-generate {:$auth->check('sample/sample/send')?'':'hide'}" title="{:__('Send')}" data-area='["50%", "80%"]'><i class="fa fa-paper-plane"></i> {:__('Send')}</a>
                     <a href="javascript:;" class="btn btn-danger btn-excel {:$auth->check('sample/sample/send_excel')?'':'hide'}" title="{:__('Send_excel')}" data-area='["50%", "80%"]'><i class="glyphicon glyphicon-export icon-share"></i>{:__('Send_excel')}</a>
                       <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled  {:$auth->check('sample/sample/delete')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}选中</a>
                        <a href="javascript:;" class="btn btn-success btn-checksample btn-disabled disabled {:$auth->check('sample/sample/send_one')?'':'hide'}" title="{:__('Send_one')}" data-area='["50%", "80%"]'><i class="fa fa-paper-plane"></i> {:__('Send_one')}</a>
                        <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('sample/sample/promote_edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
                </div>
                <table id="promote_table" class="table table-striped table-bordered table-hover"
                         data-operate-edit="{:$auth->check('sample/sample/promote_edit')}" 
                          data-operate-del="{:$auth->check('sample/sample/delete')}" 
                         data-operate-books="{:$auth->check('sample/sample/send_one')}" 
                 width="100%">
                </table>
            </div>
        </div>
    </div>
</div>
<script id="customformtpl" type="text/html">
    <!--form表单必须添加form-commsearch这个类-->
    <form action="" class="form-horizontal form-commonsearch nice-validator n-default n-bootstrap" autocomplete="off">
        <fieldset>
            <div class="row">
              <!--  <div class="row">
               <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="id" class="control-label col-xs-4">{:__('Id')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="id-operate" data-name="id" value="like" readonly="" />
                 <input type="text" class="form-control" name="id" value="" placeholder="{:__('Id')}" id="id" data-index="1" />
                </div>
               </div> -->
               <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="name" class="control-label col-xs-4">{:__('Name_n')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="name-operate" data-name="name" value="like" readonly="" />
                 <input type="text" class="form-control" name="name" value="" placeholder="{:__('Name_n')}" id="name" data-index="2" />
                </div>
               </div>
               <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="tel" class="control-label col-xs-4">{:__('Tel')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="tel-operate" data-name="tel" value="like" readonly="" />
                 <input type="text" class="form-control" name="tel" value="" placeholder="{:__('Tel')}" id="tel" data-index="2" />
                </div>
               </div>        
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="school" class="control-label col-xs-4">{:__('School')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="school-operate" data-name="school" value="like" readonly="" />
                 <input type="text" class="form-control" name="school" value="" placeholder="{:__('School')}" id="school" data-index="2" />
                </div>
               </div>                
               <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="source" class="control-label col-xs-4">{:__('Source')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="source-operate" data-name="source" value="like" readonly="" />
                 <input type="text" class="form-control" name="source" value="" placeholder="{:__('Source')}" id="source" data-index="2" />
                </div>
               </div>   
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="address" class="control-label col-xs-4">{:__('Address')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="address-operate" data-name="address" value="like" readonly="" />
                 <input type="text" class="form-control" name="address" value="" placeholder="{:__('Address')}" id="address" data-index="2" />
                </div>
               </div>
               <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="grade" class="control-label col-xs-4">{:__('Grade')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="grade-operate" data-name="grade" value="=" readonly="" />
                 <select class="form-control" name="grade">
                     <option value="">选择</option>
                     {foreach name="getGradeList" item="vo"}
                            <option value="{$key}" {in name="key" value="" }selected{/in}>{$vo}</option>
                      {/foreach}
                 </select>
                </div>
               </div>   
            
               <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="message_status" class="control-label col-xs-4">{:__('Message_status')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="message_status-operate" data-name="message_status" value="=" readonly="" />
                 <select class="form-control" name="message_status">
                     <option value="">选择</option>
                     {foreach name="getMessageList" item="vo"}
                            <option value="{$key}" {in name="key" value="" }selected{/in}>{$vo}</option>
                      {/foreach}
                 </select>
                </div>
               </div>          
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="receive" class="control-label col-xs-4">{:__('Receive')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="receive-operate" data-name="receive" value="=" readonly="" />
                 <select class="form-control" name="receive">
                     <option value="">选择</option>
                     {foreach name="getReceiveList" item="vo"}
                            <option value="{$key}" {in name="key" value="" }selected{/in}>{$vo}</option>
                      {/foreach}
                 </select>
                </div>
               </div>
               <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="createtime" class="control-label col-xs-4">{:__('Createtime')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="createtime-operate" data-name="createtime" value="RANGE" readonly="" />
                 <input type="text" class="form-control datetimerange" name="createtime" data-time-picker="true" data-use-current="true" value="" placeholder="{:__('Createtime')}" id="createtime" data-index="3" />
                </div>
               </div>
               <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="receive_time" class="control-label col-xs-4">{:__('Receive_time')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="receive_time-operate" data-name="receive_time" value="RANGE" readonly="" />
                 <input type="text" class="form-control datetimerange" name="receive_time" data-time-picker="true" data-use-current="true" value="" placeholder="{:__('Receive_time')}" id="receive_time" data-index="3" />
                </div>
               </div>        
               <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="message_time" class="control-label col-xs-4">{:__('Message_time')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="message_time-operate" data-name="message_time" value="RANGE" readonly="" />
                 <input type="text" class="form-control datetimerange" name="message_time" data-time-picker="true" data-use-current="true" value="" placeholder="{:__('Message_time')}" id="message_time" data-index="3" />
                </div>
               </div>
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="post" class="control-label col-xs-4">{:__('Post')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="post-operate" data-name="post" value="like" readonly="" />
                 <input type="text" class="form-control" name="post" value="" placeholder="{:__('Post')}" id="post" data-index="2" />
                </div>
               </div>
                  <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="gift" class="control-label col-xs-4">{:__('Gift')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="gift-operate" data-name="gift" value="=" readonly="" />
                 <select class="form-control" name="gift">
                     <option value="">选择</option>
                     {foreach name="getGiftList" item="vo"}
                            <option value="{$key}" {in name="key" value="" }selected{/in}>{$vo}</option>
                      {/foreach}
                 </select>
                </div>
               </div>
              <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="grade" class="control-label col-xs-4">{:__('Area')}</label>
                 <div class="col-xs-8 form-inline" data-toggle="cxselect" data-selects="province,city,area">
                            <input type="hidden" class="form-control operate" name="province-operate" data-name="province" value="=" readonly="" />
                            <input type="hidden" class="form-control operate" name="city-operate" data-name="city" value="=" readonly="" />
                            <input type="hidden" class="form-control operate" name="area-operate" data-name="area" value="=" readonly="" />
                            <select class="province form-control" name="province" data-url="ajax/area"></select>
                            <select class="city form-control" name="city" data-url="ajax/area"></select>
                            <select class="area form-control" name="area" data-url="ajax/area"></select>
                </div>
               </div> 
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3  pull-right">
                    <div class="col-sm-8 col-xs-offset-4">
                        <button type="submit" class="btn btn-success" formnovalidate="">提交</button>
                        <button type="reset" class="btn btn-default">重置</button>
                    </div>
                </div>
            </div>
        </fieldset>
    </form>
</script>
<script id="customformtpl2" type="text/html">
    <!--form表单必须添加form-commsearch这个类-->
    <form action="" class="form-horizontal form-commonsearch nice-validator n-default n-bootstrap" autocomplete="off">
        <fieldset>
            <div class="row">
           <!--     <div class="row">
               <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="id" class="control-label col-xs-4">{:__('Id')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="id-operate" data-name="id" value="like" readonly="" />
                 <input type="text" class="form-control" name="id" value="" placeholder="{:__('Id')}" id="id" data-index="1" />
                </div>
               </div> -->
               <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="name" class="control-label col-xs-4">{:__('Name_n')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="name-operate" data-name="name" value="like" readonly="" />
                 <input type="text" class="form-control" name="name" value="" placeholder="{:__('Name_n')}" id="name" data-index="2" />
                </div>
               </div>
               <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="tel" class="control-label col-xs-4">{:__('Tel')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="tel-operate" data-name="tel" value="like" readonly="" />
                 <input type="text" class="form-control" name="tel" value="" placeholder="{:__('Tel')}" id="tel" data-index="2" />
                </div>
               </div>  
               <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="school" class="control-label col-xs-4">{:__('School')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="school-operate" data-name="school" value="like" readonly="" />
                 <input type="text" class="form-control" name="school" value="" placeholder="{:__('School')}" id="school" data-index="2" />
                </div>
               </div>       
               <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="source" class="control-label col-xs-4">{:__('Source')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="source-operate" data-name="source" value="like" readonly="" />
                 <input type="text" class="form-control" name="source" value="" placeholder="{:__('Source')}" id="source" data-index="2" />
                </div>
               </div>  
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="address" class="control-label col-xs-4">{:__('Address')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="address-operate" data-name="address" value="like" readonly="" />
                 <input type="text" class="form-control" name="address" value="" placeholder="{:__('Address')}" id="address" data-index="2" />
                </div>
               </div>
               <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="grade" class="control-label col-xs-4">{:__('Grade')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="grade-operate" data-name="grade" value="=" readonly="" />
                 <select class="form-control" name="grade">
                     <option value="">选择</option>
                     {foreach name="getGradeList" item="vo"}
                            <option value="{$key}" {in name="key" value="" }selected{/in}>{$vo}</option>
                      {/foreach}
                 </select>
                </div>
               </div>   
        
                    
               <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="message_status" class="control-label col-xs-4">{:__('Message_status')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="message_status-operate" data-name="message_status" value="=" readonly="" />
                 <select class="form-control" name="message_status">
                     <option value="">选择</option>
                     {foreach name="getMessageList" item="vo"}
                            <option value="{$key}" {in name="key" value="" }selected{/in}>{$vo}</option>
                      {/foreach}
                 </select>
                </div>
               </div>
                   <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="receive" class="control-label col-xs-4">{:__('Receive')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="receive-operate" data-name="receive" value="=" readonly="" />
                 <select class="form-control" name="receive">
                     <option value="">选择</option>
                     {foreach name="getReceiveList" item="vo"}
                            <option value="{$key}" {in name="key" value="" }selected{/in}>{$vo}</option>
                      {/foreach}
                 </select>
                </div>
               </div>
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="createtime" class="control-label col-xs-4">{:__('Createtime')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="createtime-operate" data-name="createtime" value="RANGE" readonly="" />
                 <input type="text" class="form-control datetimerange" data-time-picker="true" data-use-current="true" name="createtime" value="" placeholder="{:__('Createtime')}" id="createtime" data-index="3" />
                </div>
               </div>
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="receive_time" class="control-label col-xs-4">{:__('Receive_time')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="receive_time-operate" data-name="receive_time" value="RANGE" readonly="" />
                 <input type="text" class="form-control datetimerange" data-time-picker="true" data-use-current="true" name="receive_time"  value="" placeholder="{:__('Receive_time')}" id="receive_time" data-index="3" />
                </div>
               </div>
                 <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="message_time" class="control-label col-xs-4">{:__('Message_time')}</label>
                <div class="col-xs-8">
                 <input type="hidden" class="form-control operate" name="message_time-operate" data-name="message_time" value="RANGE" readonly="" />
                 <input type="text" class="form-control datetimerange" data-time-picker="true" data-use-current="true" name="message_time"  value="" placeholder="{:__('Message_time')}" id="message_time" data-index="3" />
                </div>
               </div>  
           <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label class="control-label col-xs-4">&nbsp;&nbsp;&nbsp;&nbsp;</label>
                <div class="col-xs-8" style="height: 31px;">
                 
                </div>
               </div> 

              <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                <label for="grade" class="control-label col-xs-4">{:__('Area')}</label>
                 <div class="col-xs-8 form-inline" data-toggle="cxselect" data-selects="province,city,area">
                            <input type="hidden" class="form-control operate" name="province-operate" data-name="province" value="=" readonly="" />
                            <input type="hidden" class="form-control operate" name="city-operate" data-name="city" value="=" readonly="" />
                            <input type="hidden" class="form-control operate" name="area-operate" data-name="area" value="=" readonly="" />
                            <select class="province form-control" name="province" data-url="ajax/area"></select>
                            <select class="city form-control" name="city" data-url="ajax/area"></select>
                            <select class="area form-control" name="area" data-url="ajax/area"></select>
                </div>
               </div>   
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3 pull-right">
                    <div class="col-sm-8 col-xs-offset-4">
                        <button type="submit" class="btn btn-success" formnovalidate="">提交</button>
                        <button type="reset" class="btn btn-default">重置</button>
                    </div>
                </div>
            </div>
        </fieldset>
    </form>
</script>